﻿using ESRI.ArcGIS.SystemUI;
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using DevComponents.DotNetBar;
using ICommand = ESRI.ArcGIS.SystemUI.ICommand;
using PlanningGIS.ManageUtility;

namespace PlanningGIS.Framework
{
    /// <summary>
    /// 工具栏按钮管理类
    /// </summary>
    public interface IBarManager
    {
        /// <summary>
        /// 按钮项点击事件
        /// </summary>
        event OnItemClickEventHandler OnItemClickEvent;

        /// <summary>
        /// 创建按钮栏容器
        /// </summary>
        /// <param name="container">父容器</param>
        /// <param name="groups">要创建的功能项组</param>
        /// <param name="application">关联的应用程序对象</param>
        void CreateBar(Control container, List<IPrivilegeGroup> groups, IApplication application = null);

        /// <summary>
        /// 查找功能按钮项
        /// </summary>
        /// <param name="commandName">功能按钮项的名称</param>
        /// <returns></returns>
        ICommand FindCommand(string commandName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="_Application"></param>
        /// <param name="X"></param>
        /// <param name="Y"></param>
        void GetContextMenuStrip(IApplication _Application,int X,int Y);

        /// <summary>
        /// 
        /// </summary>
        ICommandPoolEx CommandPoolEx { get; set; }
    }
}

